package com.kelly.excel;

import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.ss.util.CellAddress;

/**
 * 重写getNewName方法，获取新的单元格名称
 */
public class RenameCellRuleImpl implements RenameCellRule {
    @Override
    public String getNewName(HSSFCell cell) {
        CellAddress cellAddress = cell.getAddress();

        return cellAddress.toString()+"_test";
    }
}
